package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class NonSecondPrimaryDatetimeField {

    private int beginIndex;
    private int endIndex;
    private boolean year;
    private boolean month;
    private boolean day;
    private boolean hour;
    private boolean minute;

    public NonSecondPrimaryDatetimeField(int beginIndex,
                                         int endIndex,
                                         boolean year,
                                         boolean month,
                                         boolean day,
                                         boolean hour,
                                         boolean minute) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.year = year;
        this.month = month;
        this.day = day;
        this.hour = hour;
        this.minute = minute;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public boolean isYear() {
        return year;
    }

    public boolean isMonth() {
        return month;
    }

    public boolean isDay() {
        return day;
    }

    public boolean isHour() {
        return hour;
    }

    public boolean isMinute() {
        return minute;
    }

}
